ABC109 C - Skip
提出
code: python
from functools import reduce
import math
n, X = map(int, input().split())
x = list(map(int, input().split()))
dis = []
for i in x:
dis.append(abs(i - X))
def my_gcd(numbers):
return reduce(math.gcd, numbers)
print(my_gcd(dis))
テーマ